package com.example.chat.beans;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName("tb_content")
public class Content {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String title = "";//文章标题
    private String content = "";//文章内容
    private long createTime;//创建时间
    private Integer createAdmin = 0;//创建人
    @TableField(exist = false)
    private String createAdminName;
}
